import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class RectangleButton extends JButton {
    public RectangleButton(Icon ico) {
        super(ico);
        setContentAreaFilled(false);
    }
    public RectangleButton(Action action) {
        super(action);
        setContentAreaFilled(false);
    }
    public RectangleButton(String s, Icon ico) {
        super(s, ico);
        setContentAreaFilled(false);
    }
    public RectangleButton(String s) {
        super(s);
        setContentAreaFilled(false);
    }
    protected void paintComponent(Graphics g) {
        g.setColor(Color.BLUE);
        g.fillRect(0, 0, getSize().width - 1, getSize().height - 1);
        super.paintComponent(g);
    }
    protected void paintBorder(Graphics g) {
        g.setColor(Color.BLUE);
        g.drawRect(0, 0, getSize().width - 1, getSize().height - 1);
    }
}